package com.zhiche.lisa.tms.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import java.io.Serializable;

/**
 * <p>
 * 订单各类联系人信息
 * </p>
 *
 * @author qichao
 * @since 2018-06-18
 */
@TableName("lisa_ship_task_contact")
public class ShipTaskContact extends Model<ShipTaskContact> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	@JsonSerialize(using=ToStringSerializer.class)
	private Long id;
    /**
     * 运输任务编号
     */
	@TableField("ship_task_code")
	private String shipTaskCode;
    /**
     * 起点联系人姓名
     */
	@TableField("origin_contact_name")
	private String originContactName;
    /**
     * 终点联系人姓名
     */
	@TableField("dest_contact_name")
	private String destContactName;
    /**
     * 起点联系人电话
     */
	@TableField("origin_contact_phone")
	private String originContactPhone;
    /**
     * 终点联系人电话
     */
	@TableField("dest_contact_phone")
	private String destContactPhone;

	/**
	 * 租户ID
	 */
	@TableField("tenant_id")
	private Long tenantId;

	@TableField("is_delete")
	@TableLogic
	private Integer isDelete;

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getShipTaskCode() {
		return shipTaskCode;
	}

	public void setShipTaskCode(String shipTaskCode) {
		this.shipTaskCode = shipTaskCode;
	}

	public String getOriginContactName() {
		return originContactName;
	}

	public void setOriginContactName(String originContactName) {
		this.originContactName = originContactName;
	}

	public String getDestContactName() {
		return destContactName;
	}

	public void setDestContactName(String destContactName) {
		this.destContactName = destContactName;
	}

	public String getOriginContactPhone() {
		return originContactPhone;
	}

	public void setOriginContactPhone(String originContactPhone) {
		this.originContactPhone = originContactPhone;
	}

	public String getDestContactPhone() {
		return destContactPhone;
	}

	public void setDestContactPhone(String destContactPhone) {
		this.destContactPhone = destContactPhone;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ShipTaskContact{" +
			", id=" + id +
			", shipTaskCode=" + shipTaskCode +
			", originContactName=" + originContactName +
			", destContactName=" + destContactName +
			", originContactPhone=" + originContactPhone +
			", destContactPhone=" + destContactPhone +
			"}";
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}
}
